<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/layouts/template.xhtml">
	<ui:define name="body">
		<h:form id="form" acceptcharset="ISO-8859-1">
			<p:panel header="#{msgs['massai.login.systemAccess']}">
				<h:panelGrid columns="2" cellpadding="5">
					<p:outputLabel value="#{msgs['massai.login.username']}" for="username" />
					<p:inputText value="#{loginBean.user.username}" id="username" required="true" maxlength="20" 
						label="#{msgs['massai.login.username']}" requiredMessage="Login #{msgs['common.required.field']}" />

					<p:outputLabel value="#{msgs['massai.login.password']}" for="password" />
					<p:password value="#{loginBean.user.password}" id="password" required="true" 
					label="#{msgs['massai.login.password']}" requiredMessage="Senha #{msgs['common.required.field']}" />

					<p:spacer width="0" />
					<h:commandButton actionListener="#{loginBean.login()}" value="#{msgs['massai.login.access']}" style="float: right;" />
				</h:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>
</html>